package com.jackson.framerocketmq.listener;

/*
 * Author: JacksonCoder
 * FileName: RocketMQConsumerListener
 * Version: 1.0.0
 * Date: 2025/4/18
 */

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

@Service
@RocketMQMessageListener(consumerGroup = "test1", topic = "test1")
public class RocketMQConsumerListener  implements RocketMQListener<String> {


    @Override
    public void onMessage(String s) {
        System.out.println("消费消息" + s);
    }
}
